#include "htmldialog.h"
#include "ui_htmldialog.h"

HtmlDialog::HtmlDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::HtmlDialog), webEngineView(new QWebEngineView(this))
{
    // 设置要加载的 URL
    webEngineView->setUrl(QUrl::fromLocalFile("D:\\temp\\web\\index.html"));

    ui->setupUi(this);
    ui->verticalLayout->addWidget(webEngineView);
}

HtmlDialog::~HtmlDialog()
{
    delete ui;
}
